﻿CREATE TABLE [dbo].[RefreshTokens] (
    [Id]                        NVARCHAR (128) NOT NULL,
    [UserName]                  NVARCHAR (MAX) NULL,
    [ClientId]                  BIGINT         NOT NULL,
    [UserId]                    BIGINT         NULL,
    [IssuedUtc]                 DATETIME       NOT NULL,
    [ExpiresUtc]                DATETIME       NOT NULL,
    [ProtectedTicket]           NVARCHAR (MAX) NULL,
    [LastAuthorizationUserName] NVARCHAR (MAX) NULL,
    [AuthorizationPlatFrom]     VARCHAR (10)   NULL,
    [TicketVersion]             INT            NULL,
    CONSTRAINT [PK_dbo.RefreshTokens] PRIMARY KEY CLUSTERED ([Id] ASC)
);









